package user_local_ewallet

import (
	"net/http"

	"gitee.com/liuxuezhan/ar-platform/base-common/result"

	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/logic/assets/user_local_ewallet"
	"gitee.com/liuxuezhan/ar-platform/admin-api/internal/svc"
)

// pix钱包类型
func UserLocalEWalletTypeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := user_local_ewallet.NewUserLocalEWalletTypeLogic(r.Context(), svcCtx)
		resp, err := l.UserLocalEWalletType()
		if err != nil {
			result.HttpErrorResult(r.Context(), w, err)
			return
		}
		result.HttpSuccessResult(r.Context(), w, resp)
	}
}
